'use strict';

function calculate_elements_sum(collection) {
  //在这里写入代码
  var total = collection.reduce(function(sum, value) {
    return sum + value;
  }, 0);
  return total;
}

module.exports = calculate_elements_sum;

